﻿ 
<script src="https://cdn.auth0.com/w2/auth0-widget-5.0.min.js"></script>
<script type="text/javascript">

    var widget = new Auth0Widget({
        domain: 'workbasket.auth0.com',
        clientID: 'oaGtGYNITEk1HWiBG6c1T73V7vGTMaG0',
        callbackURL: '@System.Configuration.ConfigurationManager.AppSettings["auth0:CallbackUrl"]'
    });

</script>







@if (User.Identity.IsAuthenticated)
{
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
    {
    @Html.AntiForgeryToken()

    <ul class="nav navbar-nav navbar-right">
        <li>
            <a style="color:white" class="nav navbar-link" href="/dash">
                <span class="glyphicon glyphicon-dashboard"></span>&nbsp;My Dashboard
            </a>
        </li>
        <li>
            <a style="color:white" class="nav navbar-link" href="/home/Profile">
                <span class="glyphicon glyphicon-user"></span>&nbsp;My Profile
            </a>
        </li>
        <li>
            <a style="color:white" class="nav navbar-link" href="/home/Logoff">
                <span class="glyphicon glyphicon-log-out"></span>&nbsp;Log Off
            </a>

            
        </li>
    </ul>
    }
}
else
{
    <ul class="nav navbar-nav navbar-right">
        <li>
            <a style="color:white" class="nav navbar-link" href="#" onclick="widget.signin({ scope: 'openid profile' })">
                <span class="glyphicon glyphicon-log-in"></span>&nbsp;Login
            </a>
        </li>
    </ul>
}
